package com.woniuxy.carrental.service.impl;

import com.woniuxy.carrental.entity.RentCarType;
import com.woniuxy.carrental.mapper.RentCarTypeMapper;
import com.woniuxy.carrental.service.RentCarTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author author
 * @create 2021-10-04 14:49
 */
@Service
public class RentCarTypeServiceImpl implements RentCarTypeService {

@Autowired
RentCarTypeMapper rentCarTypeMapper;


    @Override
    public void addRentCarType(RentCarType rentCarType) {
        rentCarTypeMapper.addRentCarType(rentCarType);
    }

    @Override
    public List<RentCarType> selectAllRentCarType() {
        List<RentCarType> rentCarTypes = rentCarTypeMapper.selectAllRentCarType();
        return rentCarTypes;
    }
}
